package com.ibix.print;




import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.awt.print.PrinterJob;

/**
 * Created by Administrator on 2018/2/2.
 */
public class PrintJobPack {
    protected final Logger LOGGER = LoggerFactory.getLogger(getClass());
    //厨房热菜
    private static PrinterJob callFoodPrint;
    //收银端
    private static PrinterJob cashierPrint;
    //厨房冷菜
    private static PrinterJob cookPrint;

    public static PrinterJob getCallFoodPrint() {
        if(callFoodPrint  == null)
        {
            callFoodPrint = PrinterJob.getPrinterJob();
        }
        return callFoodPrint;
    }

    public static PrinterJob getCashierPrint() {
        if(cashierPrint == null){
            cashierPrint = PrinterJob.getPrinterJob();
        }
        return cashierPrint;
    }

    public static PrinterJob getCookPrint() {
        if(cookPrint == null){
            cookPrint = PrinterJob.getPrinterJob();
        }
        return cookPrint;
    }
}
